package org.news.web.domain.vo;

import java.util.Date;

import org.news.web.domain.Comments;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;


/**
 * 评论视图对象 comments
 *
 * @author Gu Ci
 * @date 2024-04-03
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Comments.class)
public class CommentsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    @ExcelProperty(value = "评论ID")
    private Long commentId;

    /**
     * 父评论ID
     */
    @ExcelProperty(value = "父评论ID")
    private Long parentCommentId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;

    private String username;

    private String toUserName;

    // 子评论
    private List<CommentsVo> childComment;

//    子评论用户信息
    private UsersVo usersVo;

//    父评论
    private CommentsVo commentsVo;

//    相关新闻信息
    private NewsVo newsVo;

//
private String pictureUrl;

    /**
     * 新闻ID
     */
    @ExcelProperty(value = "新闻ID")
    private Long newsId;

    /**
     * 新闻ID
     */
    @ExcelProperty(value = "新闻标题")
    private String title;

    /**
     * 评论内容
     */
    @ExcelProperty(value = "评论内容")
    private String content;


    /**
     * 记录创建时间
     */
    @ExcelProperty(value = "记录创建时间 ")
    private Date creationTime;

    /**
     * 记录更新时间
     */
    @ExcelProperty(value = "记录更新时间 =")
    private Date updateTime;



}
